﻿<%@ Page Language="C#" MasterPageFile="~/Tenmah.Master" AutoEventWireup="true" CodeBehind="Manage_groups.aspx.cs" Inherits="Tenmah.Web.Administrator.Manage_groups" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript" src="../Js/TenmahScripts.js"></script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SubmenuContentPlaceHolder" runat="server">
     <table border="0" cellpadding="0" cellspacing="0" >
	    <tr>
    		<td style="background: url('../images/submenu_left.jpg') no-repeat; width: 6px; height: 20px;">
	        </td>
      		<td style="background: url('../images/submenu_center.jpg') repeat-x; height: 20px;">
      		    <asp:Button ID="AddGroupButton" runat="server" Text="Создать" CssClass="button_transparent_bold" PostBackUrl="~/Administrator/EditGroup.aspx" />
                <asp:Button ID="DeleteGroupButton" runat="server" Text="Удалить" CssClass="button_transparent_bold" OnClick="DeleteGroupButton_Click" />
            </td>
      		<td style="background: url('../images/submenu_right.jpg') no-repeat; width: 6px; height: 20px;">
	        </td>
	    </tr>
    </table> 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitleContentPlaceHolder" runat="server">  
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Repeater ID="GroupsRepeater" runat="server" OnItemCommand="GroupsRepeater_ItemCommand">
        <HeaderTemplate>
            <table  border="0" cellpadding="0" cellspacing="0" width="100%" class="list_view">
                <tr class="list_view_header">
                    <th style="padding: 2px;">
                        <asp:CheckBox ID="InverseSelectionCheckBox" runat="server" />
                    </th>
                    <th style="padding: 2px;">                   
                        <asp:LinkButton ID="SortByNameLinkButton" runat="server" OnClick="SortByNameLinkButton_Click" >Название</asp:LinkButton>                                    
                    </th>
                    <th style="padding: 2px;">                   
                        <asp:LinkButton ID="SortByYearLinkButton" runat="server" OnClick="SortByYearLinkButton_Click" >Год</asp:LinkButton>                                    
                    </th>
                    <th style="padding: 2px;">                   
                        <asp:LinkButton ID="SortBySpecializationLinkButton" runat="server" OnClick="SortBySpecializationLinkButton_Click" >Специальность</asp:LinkButton>                                    
                    </th>
                    <th style="padding: 2px;">                   
                        <asp:LinkButton ID="SortByFacultyLinkButton" runat="server" OnClick="SortByFacultyLinkButton_Click" >Факультет</asp:LinkButton>                                    
                    </th>
                    <th style="padding: 2px;">   
                                   
                    </th>
                    <th style="padding: 2px;">   
                                   
                    </th>                    
                </tr>
        </HeaderTemplate>    
        <ItemTemplate>
                <%# Container.ItemIndex % 2 == 0 ? "<tr class=\"list_view_item\">" : "<tr class=\"list_view_alternating_item\">" %>
                    <td>
                        <asp:CheckBox ID="SelectUserCheckBox" runat="server" />
                        <asp:HiddenField ID="GroupIdHiddenField" runat="server" Value='' />
                    </td>
                    <td style="padding: 2px;">
                        <asp:Label ID="NameLabel" runat="server" Text="--" />
                    </td>
                    <td style="padding: 2px;">
                        <asp:Label ID="YearLabel" runat="server" Text="--" />
                    </td>
                    <td style="padding: 2px;">
                        <asp:Label ID="SpecializationLabel" runat="server" Text="--" />
                    </td>
                    <td style="padding: 2px;">
                        <asp:Label ID="FacultyLabel" runat="server" Text="--" />
                    </td>
                    <td style="padding: 2px;">
                        <asp:Label ID="MessageLabel" runat="server" Text="" />
                    </td>
                    <td style="padding: 2px;">                    
                        <a href='../Administrator/EditGroup.aspx?GroupId=' class="link_button_green">изменить</a>
                        <br />
                        <asp:LinkButton ID="DeleteLinkButton" runat="server" Text="удалить" CommandName="Delete" CommandArgument='' CssClass="link_button_red" />
                    </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>            
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
